Windows XP has a DHCP server built in (it just isn't enabled). To enable it you will need to tweak the 'IpEnableRouter' option in regedit (google 'IPEnableRouter').
If your computer is connected to the internet, use the DHCP server. For IP addresses on a private network, you probably don't have access to a DHCP server and should contact someone to set up your private network.